package com.sca.controller;

import com.sca.service.RemoteProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignConsumerController {
    @Autowired
   private RemoteProviderService providerService;

    @GetMapping("/feign/echo/{msg}")
    public String doFeignEcho(@PathVariable String msg){


        return providerService.EchoMsg(msg);
    }

}
